Skip to content

Conversation

@Anatw
Copy link
Contributor

@Anatw Anatw commented Apr 30, 2023

Short description:
More details:

flake8...................................................................Failed

  • hook id: flake8
  • exit code: 1

ocp_resources/node.py:16:16: C419 Unnecessary list comprehension passed to any() prevents short-circuiting - rewrite as a generator.
ocp_resources/virtual_machine_restore.py:72:26: SIM910 Use 'self.instance.get('status', {}).get("complete")' instead of 'self.instance.get('status', {}).get('complete', None)'
ocp_resources/virtual_machine_snapshot.py:69:26: SIM910 Use 'self.instance.get('status', {}).get("readyToUse")' instead of 'self.instance.get('status', {}).get('readyToUse', None)'

What this PR does / why we need it:
Which issue(s) this PR fixes:
Special notes for reviewer:
Bug:

Signed-off-by: Anat Wax <awax@redhat.com>
@redhat-qe-bot
Copy link
Contributor

The following are automatically added:

  • Add reviewers from OWNER file (in the root of the repository) under reviewers section.
  • Set PR size label.
  • New issue is created for the PR. (Closed when PR is merged/closed)

Available user actions:

  • To mark PR as verified add /verified to a PR comment, to un-verify add /verified cancel to a PR comment.
    verified label removed on each new commit push.
  • To cherry pick a merged PR add /cherry-pick <target branch to cherry-pick to> to a PR comment.
    • Support only merged PRs
  • To add a label by comment use /<label name>, to remove, use /<label name> cancel
Supported labels
  • hold
  • verified
  • wip
  • lgtm
  • approve
  • target-version-

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
No Duplication information No Duplication information

@redhat-qe-bot
Copy link
Contributor

Tox check passed

�[K
⠋ [0/2]
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[K
⠹ [2/2] unittests | validate-resources
�[K
⠸ [2/2] unittests | validate-resources
�[K
⠼ [2/2] unittests | validate-resources
�[K
⠴ [2/2] unittests | validate-resources
�[K
⠦ [2/2] unittests | validate-resources
�[K
⠧ [2/2] unittests | validate-resources
�[K
⠇ [2/2] unittests | validate-resources
�[K
⠏ [2/2] unittests | validate-resources
�[K
⠋ [2/2] unittests | validate-resources
�[K
⠙ [2/2] unittests | validate-resources
�[Kvalidate-resources: OK ✔ in 15.13 seconds

�[K
⠹ [1/2] unittests
�[K
⠸ [1/2] unittests
�[K
⠼ [1/2] unittests
�[K
⠴ [1/2] unittests
�[K
⠦ [1/2] unittests
�[K
⠧ [1/2] unittests
�[K
⠇ [1/2] unittests
�[K
⠏ [1/2] unittests
�[K
⠋ [1/2] unittests
�[K
⠙ [1/2] unittests
�[K
⠹ [1/2] unittests
�[K
⠸ [1/2] unittests
�[K
⠼ [1/2] unittests
�[K
⠴ [1/2] unittests
�[K
⠦ [1/2] unittests
�[K
⠧ [1/2] unittests
�[K
⠇ [1/2] unittests
�[K
⠏ [1/2] unittests
�[K
⠋ [1/2] unittests
�[K
⠙ [1/2] unittests
�[K
⠹ [1/2] unittests
�[K
⠸ [1/2] unittests
�[K
⠼ [1/2] unittests
�[K
⠴ [1/2] unittests
�[K
⠦ [1/2] unittests
�[K
⠧ [1/2] unittests
�[K
⠇ [1/2] unittests
�[K
⠏ [1/2] unittests
�[K
⠋ [1/2] unittests
�[K
⠙ [1/2] unittests
�[K
⠹ [1/2] unittests
�[K
⠸ [1/2] unittests
�[K
⠼ [1/2] unittests
�[K
⠴ [1/2] unittests
�[K
⠦ [1/2] unittests
�[K
⠧ [1/2] unittests
�[K
⠇ [1/2] unittests
�[K
⠏ [1/2] unittests
�[K
⠋ [1/2] unittests
�[K
⠙ [1/2] unittests
�[K
⠹ [1/2] unittests
�[K
⠸ [1/2] unittests
�[K
⠼ [1/2] unittests
�[K
⠴ [1/2] unittests
�[K
⠦ [1/2] unittests
�[K
⠧ [1/2] unittests
�[K
⠇ [1/2] unittests
�[K
⠏ [1/2] unittests
�[K
�[K unittests: OK (20.00=setup[1.46]+cmd[0.85,12.56,5.13] seconds)
validate-resources: OK (15.13=setup[1.77]+cmd[0.88,11.89,0.59] seconds)
congratulations :) (20.07 seconds)

@Anatw
Copy link
Contributor Author

Anatw commented May 1, 2023

/verified

@myakove myakove merged commit 633140b into RedHatQE:main May 2, 2023
@Anatw Anatw deleted the fix_errors_by_flake8 branch May 2, 2023 09:34
@Anatw
Copy link
Contributor Author

Anatw commented May 3, 2023

/cherry-pick v4.13

redhat-qe-bot pushed a commit that referenced this pull request May 3, 2023
Signed-off-by: Anat Wax <awax@redhat.com>
@redhat-qe-bot
Copy link
Contributor

Cherry-picked PR Refactor the code according to flake8 errors into v4.13

rnetser pushed a commit that referenced this pull request May 4, 2023
Signed-off-by: Anat Wax <awax@redhat.com>
Co-authored-by: ‪Anat Wax <46938838+Anatw@users.noreply.github.com>
Anatw added a commit to Anatw/openshift-python-wrapper that referenced this pull request Jun 15, 2023
Signed-off-by: Anat Wax <awax@redhat.com>
myakove pushed a commit that referenced this pull request Jun 18, 2023
Signed-off-by: Anat Wax <awax@redhat.com>
myakove pushed a commit that referenced this pull request Aug 11, 2025
Signed-off-by: Anat Wax <awax@redhat.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants